home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / IDLIncludes / Keyboard.idl < prev    next >
Text File  |  1996-05-01  |  2KB  |  78 lines

  1. /*
  2.      File:        Keyboard.idl
  3.  
  4.      Contains:    interfaces for keyboard componets
  5.  
  6.      Version:    Technology:    
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. */
  18. #ifndef __KEYBOARD_IDL__
  19. #define __KEYBOARD_IDL__
  20.  
  21. #include <somobj.idl>
  22. #include <somcls.idl>
  23.  
  24. #ifndef __CONDITIONALMACROS_IDL__
  25. #include <ConditionalMacros.idl>
  26. #endif
  27. #ifndef __EVENTS_IDL__
  28. #include <Events.idl>
  29. #endif
  30. #ifndef __IOITERATOR_IDL__
  31. #include <IOIterator.idl>
  32. #endif
  33. #ifndef __TIMING_IDL__
  34. #include <Timing.idl>
  35. #endif
  36.  
  37. #ifdef __SOMIDL__
  38.  
  39. #if FOR_SYSTEM8_PREEMPTIVE
  40. /* Virtual ID for a keyboard  */
  41. typedef UInt32                    KeyboardID;
  42.  
  43. /* System 8.x version of of a Keymap */
  44. typedef OpaquePtr                KeyboardMap;                /* Substituted OpaquePtr for array of Byte of size 32 */
  45.  
  46. /* System 8.x version of a virtual key */
  47. typedef UInt8                    VirtualKeyCode;
  48.  
  49. /* System 8.x definition of keyboard modifiers */
  50. typedef UInt16                    KeyboardModifiers;
  51.  
  52. /* System 8.x definition of keyboard direction */
  53. typedef short                    KeyDirection;
  54.  
  55. typedef UInt32                    KeyboardDeviceMode;
  56.  
  57. /* Keyboard Event returned from I/O subsystem */
  58. typedef SOMLargeStruct            LowLevelKeyEvent;            /* Derived from a struct of 18 bytes in size */
  59.  
  60. typedef UInt32                    KeyboardHardwareType;
  61.  
  62. typedef SOMLargeStruct            KeyboardIOIteratorData;        /* Derived from a struct of 34 bytes in size */
  63.  
  64. typedef KeyboardIOIteratorData KeyboardDeviceRecord;
  65.  
  66. typedef boolean                    KeyboardLEDState;
  67.  
  68. typedef short                    KeyboardLEDSelector;
  69.  
  70. /* Warning: This routine is intended only for clients who need to bypass the events system altogether. */
  71. /* Device Iteration */
  72. #endif
  73.  
  74. #endif /* __SOMIDL__ */
  75.  
  76. #endif /* __KEYBOARD_IDL__ */
  77.  
  78.